﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bintje
{
    /// <summary>
    /// Internal class implements the design pattern Singleton for single entry point for SOAP API
    /// </summary>
    internal class API : bintje.ServiceAPI
    {
        internal const string RESPONSE_SUCCESS = "NORMAL";
        internal const string RESPONSE_ERROR = "STATUS_ERROR";

        private static API m_instance;
        private static object lockObject = new object();

        private API(): base()
        {

        }

        public static API instance 
        {
            get
            {
                if (m_instance == null)
                {
                    lock (lockObject)
                    {
                        m_instance = new API();
                    }
                }
                return m_instance;
            }
        }
    }
}
